<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="cn.hnkjxy.po.User"%>
<!DOCTYPE html>
<html>
<link type="text/css"
	href="${pageContext.request.contextPath}/css/main.css" rel="stylesheet"
	charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<div id="divhead" style="background-color: #23262E">
	<table width="100%" height="70px">
		<tr style="vertical-align: middle">
			<td style="text-align: left">
				<p style="display: inline; color: #09806B;">酒店用户系统</p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="${pageContext.request.contextPath}/index.jsp">首页</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="${pageContext.request.contextPath}/PersonalCenter">个人中心</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="${pageContext.request.contextPath}/findUserOrder">我的订单</a>
			</td>
			<%
				User user = (User) request.getSession().getAttribute("user");
				if (user == null) {
			%>
			<td style="text-align: right"><a
				href="${pageContext.request.contextPath}/register">新用户注册</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="${pageContext.request.contextPath}/login">用户登录</a></td>
			<%
				} else {
			%>
			<td style="text-align: right">
				<p style="display: inline; color: white;">级别:会员&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;欢迎您：
					${user.username}</p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
				href="${pageContext.request.contextPath}/logout">用户退出</a> <%
 	}
 %>
			</td>
		</tr>
	</table>
</div>

</html>